package com.zhw.learning.designpattern.strategypattern;

/**
 * @author Administrator
 * 环境角色--计算器
 */
public class CounterEnvironmentalRole {

    private Strategy strategy;

    public CounterEnvironmentalRole(Strategy strategy){
        this.strategy = strategy;
    }

    public int count (int num1,int num2){
        return strategy.count(num1,num2);
    }

}
